Flexi - Milkcore [Martin's ripple on water insertion].milk 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459
  1. MILKDROP_PRESET_VERSION=201
  2. PSVERSION=3
  3. PSVERSION_WARP=3
  4. PSVERSION_COMP=3
  5. [preset00]
  6. fRating=1.000
  7. fGammaAdj=1.210
  8. fDecay=1.000
  9. fVideoEchoZoom=1.000
  10. fVideoEchoAlpha=0.500
  11. nVideoEchoOrientation=0
  12. nWaveMode=0
  13. bAdditiveWaves=0
  14. bWaveDots=0
  15. bWaveThick=1
  16. bModWaveAlphaByVolume=0
  17. bMaximizeWaveColor=0
  18. bTexWrap=0
  19. bDarkenCenter=0
  20. bRedBlueStereo=0
  21. bBrighten=0
  22. bDarken=0
  23. bSolarize=0
  24. bInvert=0
  25. fWaveAlpha=0.004
  26. fWaveScale=0.073
  27. fWaveSmoothing=0.000
  28. fWaveParam=-0.440
  29. fModWaveAlphaStart=1.000
  30. fModWaveAlphaEnd=1.000
  31. fWarpAnimSpeed=0.010
  32. fWarpScale=100.000
  33. fZoomExponent=0.92178
  34. fShader=1.000
  35. zoom=0.99010
  36. rot=0.00000
  37. cx=0.500
  38. cy=0.500
  39. dx=0.00000
  40. dy=0.00000
  41. warp=0.01000
  42. sx=1.00000
  43. sy=1.00000
  44. wave_r=1.000
  45. wave_g=1.000
  46. wave_b=1.000
  47. wave_x=0.500
  48. wave_y=0.040
  49. ob_size=0.000
  50. ob_r=0.000
  51. ob_g=0.000
  52. ob_b=0.000
  53. ob_a=1.000
  54. ib_size=0.000
  55. ib_r=0.000
  56. ib_g=0.000
  57. ib_b=0.000
  58. ib_a=1.000
  59. nMotionVectorsX=64.000
  60. nMotionVectorsY=48.000
  61. mv_dx=0.000
  62. mv_dy=0.000
  63. mv_l=0.500
  64. mv_r=0.000
  65. mv_g=0.000
  66. mv_b=0.000
  67. mv_a=0.000
  68. b1n=0.000
  69. b2n=0.000
  70. b3n=0.000
  71. b1x=1.000
  72. b2x=1.000
  73. b3x=1.000
  74. b1ed=0.250
  75. wavecode_0_enabled=1
  76. wavecode_0_samples=512
  77. wavecode_0_sep=0
  78. wavecode_0_bSpectrum=0
  79. wavecode_0_bUseDots=0
  80. wavecode_0_bDrawThick=1
  81. wavecode_0_bAdditive=1
  82. wavecode_0_scaling=5.58215
  83. wavecode_0_smoothing=0.00000
  84. wavecode_0_r=0.000
  85. wavecode_0_g=0.000
  86. wavecode_0_b=1.000
  87. wavecode_0_a=1.000
  88. wave_0_per_frame1=t1 = q1;
  89. wave_0_per_frame2=t2 = q2;
  90. wave_0_per_frame3=t3 = q3;
  91. wave_0_per_frame4=t4 = q4;
  92. wave_0_per_frame5=t5 = q5;
  93. wave_0_per_frame6=t6 = q6;
  94. wave_0_per_frame7=t7 = q7;
  95. wave_0_per_frame8=t8 = q8;
  96. wave_0_per_point1=sample = 1-sample;
  97. wave_0_per_point2=xxx = xx;
  98. wave_0_per_point3=yyy = yy;
  99. wave_0_per_point4=xx = pow(sample,5)*t1 + 5*pow(sample,4)*(1-sample)*t1 + 10*pow(sample,3)*sqr(1-sample)*t2
  100. wave_0_per_point5=+ 10*sqr(sample)*pow(1-sample,3)*t3 + 5*pow(1-sample,4)*sample*t4 + pow(1-sample,5)*t4;
  101. wave_0_per_point6=
  102. wave_0_per_point7=yy = pow(sample,5)*t5 + 5*pow(sample,4)*(1-sample)*t5 + 10*pow(sample,3)*sqr(1-sample)*t6
  103. wave_0_per_point8=+ 10*sqr(sample)*pow(1-sample,3)*t7 + 5*pow(1-sample,4)*sample*t8 + pow(1-sample,5)*t8;
  104. wave_0_per_point9=
  105. wave_0_per_point10=d = 1/sqrt(sqr(xx-xxx)+sqr(yy-yyy));
  106. wave_0_per_point11=dd = dd*0.95 + (value1);
  107. wave_0_per_point12=ddd = dd*sample*(1-sample)*d;
  108. wave_0_per_point13=ddd = sample*(1-sample)*dd*d*0.1;
  109. wave_0_per_point14=x = xx + (yy-yyy)*ddd;
  110. wave_0_per_point15=y = yy - (xx-xxx)*ddd;
  111. wave_0_per_point16=
  112. wave_0_per_point17=x = 0.5 + (x-0.5)*q9;
  113. wave_0_per_point18=y = 0.5 + (y-0.5)*q10;
  114. wave_0_per_point19=
  115. wavecode_1_enabled=0
  116. wavecode_1_samples=512
  117. wavecode_1_sep=0
  118. wavecode_1_bSpectrum=0
  119. wavecode_1_bUseDots=0
  120. wavecode_1_bDrawThick=0
  121. wavecode_1_bAdditive=0
  122. wavecode_1_scaling=2.44415
  123. wavecode_1_smoothing=0.00000
  124. wavecode_1_r=1.000
  125. wavecode_1_g=1.000
  126. wavecode_1_b=1.000
  127. wavecode_1_a=1.000
  128. wave_1_init1=t2 = 0;
  129. wave_1_init2=t3 = 0;
  130. wave_1_init3=t4 = 0;
  131. wave_1_init4=cl = 0;
  132. wave_1_per_frame1=t8 = 1;
  133. wave_1_per_point1=t8 = -t8;
  134. wave_1_per_point2=y = sample*0.05;
  135. wave_1_per_point3=x = 0.5 + t8*0.005;
  136. wave_1_per_point4=
  137. wave_1_per_point5=pi3 = 3.1415*2*0.3333;
  138. wave_1_per_point6=t = (q4-q6)*10;
  139. wave_1_per_point7=c=2;
  140. wave_1_per_point8=r = sin(t)*c;
  141. wave_1_per_point9=g = sin(t+pi3)*c;
  142. wave_1_per_point10=
  143. wave_1_per_point11=b = sin(t-pi3)*c;
  144. wave_1_per_point12=
  145. wave_1_per_point13=
  146. wave_1_per_point14=r = if(above(r,1),1,r);
  147. wave_1_per_point15=r = if(below(r,0),0,r);
  148. wave_1_per_point16=g = if(above(g,1),1,g);
  149. wave_1_per_point17=g = if(below(g,0),0,g);
  150. wave_1_per_point18=b = if(above(b,1),1,b);
  151. wave_1_per_point19=b = if(below(b,0),0,b);
  152. wave_1_per_point20=
  153. wavecode_2_enabled=0
  154. wavecode_2_samples=512
  155. wavecode_2_sep=0
  156. wavecode_2_bSpectrum=0
  157. wavecode_2_bUseDots=1
  158. wavecode_2_bDrawThick=1
  159. wavecode_2_bAdditive=1
  160. wavecode_2_scaling=100.00000
  161. wavecode_2_smoothing=0.60000
  162. wavecode_2_r=0.000
  163. wavecode_2_g=0.000
  164. wavecode_2_b=1.000
  165. wavecode_2_a=1.000
  166. wave_2_per_frame1=t1 = q1;
  167. wave_2_per_frame2=t2 = q2;
  168. wave_2_per_frame3=t3 = q3;
  169. wave_2_per_frame4=t4 = q4;
  170. wave_2_per_frame5=t5 = q5;
  171. wave_2_per_frame6=t6 = q6;
  172. wave_2_per_frame7=t7 = q7;
  173. wave_2_per_frame8=t8 = q8;
  174. wave_2_per_point1=y = 0.5;
  175. wave_2_per_point2=x = sample;
  176. wavecode_3_enabled=0
  177. wavecode_3_samples=512
  178. wavecode_3_sep=0
  179. wavecode_3_bSpectrum=0
  180. wavecode_3_bUseDots=1
  181. wavecode_3_bDrawThick=0
  182. wavecode_3_bAdditive=0
  183. wavecode_3_scaling=2.44415
  184. wavecode_3_smoothing=0.00000
  185. wavecode_3_r=0.000
  186. wavecode_3_g=0.000
  187. wavecode_3_b=1.000
  188. wavecode_3_a=1.000
  189. wave_3_init1=t2 = 0;
  190. wave_3_init2=t3 = 0;
  191. wave_3_init3=t4 = 0;
  192. wave_3_init4=cl = 0;
  193. wave_3_per_frame1=t8 = 1;
  194. wave_3_per_point1=t8 = -t8;
  195. wave_3_per_point2=y = (1+t8)*0.01;
  196. wave_3_per_point3=x = sample;
  197. shapecode_0_enabled=1
  198. shapecode_0_sides=4
  199. shapecode_0_additive=0
  200. shapecode_0_thickOutline=0
  201. shapecode_0_textured=0
  202. shapecode_0_num_inst=4
  203. shapecode_0_x=0.000
  204. shapecode_0_y=0.500
  205. shapecode_0_rad=1.03630
  206. shapecode_0_ang=0.00000
  207. shapecode_0_tex_ang=0.12566
  208. shapecode_0_tex_zoom=1.51878
  209. shapecode_0_r=0.000
  210. shapecode_0_g=1.000
  211. shapecode_0_b=0.000
  212. shapecode_0_a=0.960
  213. shapecode_0_r2=0.000
  214. shapecode_0_g2=1.000
  215. shapecode_0_b2=0.000
  216. shapecode_0_a2=1.000
  217. shapecode_0_border_r=1.000
  218. shapecode_0_border_g=0.000
  219. shapecode_0_border_b=0.000
  220. shapecode_0_border_a=0.000
  221. shape_0_init1=vx = 0
  222. shape_0_per_frame1=rad = 2;
  223. shape_0_per_frame2=h = sqrt(2);
  224. shape_0_per_frame3=w = 0.004;
  225. shape_0_per_frame4=
  226. shape_0_per_frame5=x = if(1-equal(instance,0),if(1-equal(instance,1),if(1-equal(instance,2),w - h*0.5*q10,1-w + h*0.5*q10),0.5),0.5);
  227. shape_0_per_frame6=y = if(1-equal(instance,0),if(1-equal(instance,1),0.5,w - h*0.5*q9),1-w + h*0.5*q9);
  228. shape_0_per_frame7=g = if(1-equal(instance,0),if(1-equal(instance,1),0,1),1);
  229. shape_0_per_frame8=g2 = g;
  230. shapecode_1_enabled=1
  231. shapecode_1_sides=100
  232. shapecode_1_additive=1
  233. shapecode_1_thickOutline=1
  234. shapecode_1_textured=0
  235. shapecode_1_num_inst=1
  236. shapecode_1_x=0.500
  237. shapecode_1_y=0.750
  238. shapecode_1_rad=0.03184
  239. shapecode_1_ang=0.00000
  240. shapecode_1_tex_ang=0.00000
  241. shapecode_1_tex_zoom=0.73458
  242. shapecode_1_r=0.000
  243. shapecode_1_g=0.000
  244. shapecode_1_b=1.000
  245. shapecode_1_a=0.500
  246. shapecode_1_r2=0.000
  247. shapecode_1_g2=0.000
  248. shapecode_1_b2=0.000
  249. shapecode_1_a2=0.000
  250. shapecode_1_border_r=1.000
  251. shapecode_1_border_g=1.000
  252. shapecode_1_border_b=1.000
  253. shapecode_1_border_a=0.000
  254. shape_1_init1=vx = 0
  255. shape_1_per_frame1=x = q1;
  256. shape_1_per_frame2=y = q5;
  257. shapecode_2_enabled=1
  258. shapecode_2_sides=100
  259. shapecode_2_additive=1
  260. shapecode_2_thickOutline=0
  261. shapecode_2_textured=0
  262. shapecode_2_num_inst=1
  263. shapecode_2_x=0.500
  264. shapecode_2_y=0.500
  265. shapecode_2_rad=0.05780
  266. shapecode_2_ang=3.20442
  267. shapecode_2_tex_ang=0.00000
  268. shapecode_2_tex_zoom=6.23873
  269. shapecode_2_r=1.000
  270. shapecode_2_g=0.000
  271. shapecode_2_b=0.000
  272. shapecode_2_a=1.000
  273. shapecode_2_r2=1.000
  274. shapecode_2_g2=0.000
  275. shapecode_2_b2=0.000
  276. shapecode_2_a2=0.000
  277. shapecode_2_border_r=1.000
  278. shapecode_2_border_g=1.000
  279. shapecode_2_border_b=1.000
  280. shapecode_2_border_a=0.000
  281. shapecode_3_enabled=0
  282. shapecode_3_sides=100
  283. shapecode_3_additive=1
  284. shapecode_3_thickOutline=1
  285. shapecode_3_textured=0
  286. shapecode_3_num_inst=1
  287. shapecode_3_x=0.500
  288. shapecode_3_y=0.750
  289. shapecode_3_rad=0.07059
  290. shapecode_3_ang=0.00000
  291. shapecode_3_tex_ang=0.00000
  292. shapecode_3_tex_zoom=0.73458
  293. shapecode_3_r=1.000
  294. shapecode_3_g=0.000
  295. shapecode_3_b=0.000
  296. shapecode_3_a=1.000
  297. shapecode_3_r2=0.000
  298. shapecode_3_g2=0.000
  299. shapecode_3_b2=0.000
  300. shapecode_3_a2=0.000
  301. shapecode_3_border_r=1.000
  302. shapecode_3_border_g=1.000
  303. shapecode_3_border_b=1.000
  304. shapecode_3_border_a=0.000
  305. shape_3_init1=vx = 0
  306. shape_3_per_frame1=x = q1;
  307. shape_3_per_frame2=y = q5;
  308. per_frame_init_1=x1 = 0.9;
  309. per_frame_init_2=y1 = 0.5;
  310. per_frame_init_3=
  311. per_frame_init_4=x2 = 0.5; y2 = 0.5;
  312. per_frame_init_5=x3 = 0.5; y3 = 0.5;
  313. per_frame_init_6=x4 = 0.5; y4 = 0.5;
  314. per_frame_1=zoom = 1;
  315. per_frame_2=warp = 0;
  316. per_frame_3=wave_a = 0;
  317. per_frame_4=
  318. per_frame_5=// elastic thread code
  319. per_frame_6=
  320. per_frame_7=xx1 = xx1*0.9 + (bass)*0.01;
  321. per_frame_8=xx2 = xx2*0.9 + (treb)*0.01;
  322. per_frame_9=yy1 = yy1*0.94 + (treb+bass)*0.0075;
  323. per_frame_10=x1 = 0.5 + (xx1-xx2)*2;
  324. per_frame_11=y1 = 0.4 + yy1*1.5;
  325. per_frame_12=dt = 0.03/fps;
  326. per_frame_13=vx2 = vx2*(1-2*dt) + dt*((x1+x3-2*x2)*10);
  327. per_frame_14=vy2 = vy2*(1-2*dt) + dt*((y1+y3-2*y2)*10-0.5);
  328. per_frame_15=vx3 = vx3*(1-2*dt) + dt*((x2+x4-2*x3)*10);
  329. per_frame_16=vy3 = vy3*(1-2*dt) + dt*((y2+y4-2*y3)*10-0.5);
  330. per_frame_17=vx4 = vx4*(1-2*dt) + dt*((x3-x4)*10);
  331. per_frame_18=vy4 = vy4*(1-2*dt) + dt*((y3-y4)*10-0.5);
  332. per_frame_19=x2 = x2 + vx2; y2 = y2 + vy2;
  333. per_frame_20=x3 = x3 + vx3; y3 = y3 + vy3;
  334. per_frame_21=x4 = x4 + vx4; y4 = y4 + vy4;
  335. per_frame_22=vx2 = if(above(x2,0),vx2,abs(vx2)*0.5);
  336. per_frame_23=vx2 = if(below(x2,1),vx2,-abs(vx2)*0.5);
  337. per_frame_24=vx3 = if(above(x3,0),vx3,abs(vx3)*0.5);
  338. per_frame_25=vx3 = if(below(x3,1),vx3,-abs(vx3)*0.5);
  339. per_frame_26=vx4 = if(above(x4,0),vx4,abs(vx4)*0.5);
  340. per_frame_27=vx4 = if(below(x4,1),vx4,-abs(vx4)*0.5);
  341. per_frame_28=vy2 = if(above(y2,0),vy2,abs(vy2)*0.5);
  342. per_frame_29=vy2 = if(below(y2,1),vy2,-abs(vy2)*0.5);
  343. per_frame_30=vy3 = if(above(y3,0),vy3,abs(vy3)*0.5);
  344. per_frame_31=vy3 = if(below(y3,1),vy3,-abs(vy3)*0.5);
  345. per_frame_32=vy4 = if(above(y4,0),vy4,abs(vy4)*0.5);
  346. per_frame_33=vy4 = if(below(y4,1),vy4,-abs(vy4)*0.5);
  347. per_frame_34=q1 = x1;q2 = x2;q3 = x3;q4 = x4;
  348. per_frame_35=q5 = y1;q6 = y2;q7 = y3;q8 = y4;
  349. per_frame_36=q9 = 1/aspectx;
  350. per_frame_37=q10 = 1/aspecty;
  351. per_frame_38=q11 = aspectx;
  352. per_frame_39=q12 = aspecty;
  353. per_frame_40=
  354. per_frame_41=// fractal swimmer code
  355. per_frame_42=
  356. per_frame_43=q19 = cos(-(fy1-fy2)*(1+(70/fps-1)*2) - fy1*0.8);
  357. per_frame_44=q20 = sin(-(fy1-fy2)*(1+(70/fps-1)*2) - fy1*0.8);
  358. per_frame_45=q21 = sin(w1 - (-(fy1-fy2)*(1+(70/fps-1)*2) - fy1*0.8)*5)*0.042;
  359. per_frame_46=q22 = cos(w1 - (-(fy1-fy2)*(1+(70/fps-1)*2) - fy1*0.8)*5)*0.042;
  360. per_frame_47=q23 = cos(asin(1)*0.5);
  361. per_frame_48=q24 = sin(asin(1)*0.5);
  362. per_frame_49=q25 = cos(-(w1 - (-(fy1-fy2)*(1+(70/fps-1)*2) - fy1*0.8)*5) + asin(1))*0.08*aspectx;
  363. per_frame_50=q26 = sin(-(w1 - (-(fy1-fy2)*(1+(70/fps-1)*2) - fy1*0.8)*5) + asin(1))*0.08*aspecty;
  364. per_frame_51=q27 = cos(-asin(1)*0.5);
  365. per_frame_52=q28 = sin(-asin(1)*0.5);
  366. per_frame_53=q29 = cos(-(w1 - (-(fy1-fy2)*(1+(70/fps-1)*2) - fy1*0.8)*5) + asin(1))*0.08*aspectx;
  367. per_frame_54=q30 = sin(-(w1 - (-(fy1-fy2)*(1+(70/fps-1)*2) - fy1*0.8)*5) + asin(1))*0.08*aspecty;
  368. per_frame_55=
  369. per_frame_56=bb = bb*0.97 + bass*0.04;
  370. per_frame_57=tt = tt*0.97 + treb*0.04;
  371. per_frame_58=w1 = w1 + ww1*sqrt(vx*vx+vy*vy)*asin(1)*0.5;
  372. per_frame_59=ww1 = ww1*0.94 + fy1*0.1;
  373. per_frame_60=fy1 = fy1 + v1*0.1;
  374. per_frame_61=fy2 = fy2 + v2*0.2;
  375. per_frame_62=v1 = v1*0.95 - (fy1-(bb-tt)*0.2)*0.1;
  376. per_frame_63=v2 = v2*0.99 - (fy2-fy1)*0.2;
  377. per_frame_64=x = x + vx*0.25;
  378. per_frame_65=y = y + vy*0.25;
  379. per_frame_66=vx = vx*0.97 +sin((w1 - (-(fy1-fy2)*(1+(70/fps-1)*2) - fy1*0.8)*5))*abs(fy2-fy1)*2.2/fps;
  380. per_frame_67=vy = vy*0.97 -cos((w1 - (-(fy1-fy2)*(1+(70/fps-1)*2) - fy1*0.8)*5))*abs(fy2-fy1)*2.2/fps;
  381. per_frame_68=
  382. per_frame_69=q31 = x*0.5;
  383. per_frame_70=q32 = y*0.5;
  384. per_frame_71=monitor = vy;
  385. per_pixel_1=x = 0.5 + (x-0.5)*q11;
  386. per_pixel_2=y = 0.5 + (y-0.5)*q12;
  387. per_pixel_3=xx = q4;
  388. per_pixel_4=yy = 1-q8;
  389. per_pixel_5=
  390. per_pixel_6=dx = 0; dy = 0;
  391. per_pixel_7=
  392. per_pixel_8=d = sqrt((x-xx)*(x-xx)+(y-yy)*(y-yy));
  393. per_pixel_9=
  394. per_pixel_10=r = 0.11;
  395. per_pixel_11=v = 20;
  396. per_pixel_12=dx = (v*(sin(y-yy)*(d-r)-(x-xx)*(d-r/2)))*(1.00-sigmoid(d-r,100));
  397. per_pixel_13=dy = (-v*(sin(x-xx)*(d-r)+(y-yy)*(d-r/2)))*(1.00-sigmoid(d-r,100));
  398. warp_1=`float2 factorA, factorB, product;
  399. warp_2=`shader_body
  400. warp_3=`{
  401. warp_4=`factorA = (uv_orig-0.5)*aspect.xy;
  402. warp_5=`factorB = float2(q19,q20);
  403. warp_6=`product = float2( factorA.x*factorB.x - factorA.y*factorB.y, factorA.x*factorB.y + factorA.y*factorB.x);
  404. warp_7=`float2 uv1 = 0.5 + product*aspect.zw*1.12 + float2(q21,q22)*aspect.zw; // main arm of the fern
  405. warp_8=`factorB = float2(q23,q24);
  406. warp_9=`product = float2( factorA.x*factorB.x - factorA.y*factorB.y, factorA.x*factorB.y + factorA.y*factorB.x);
  407. warp_10=`float2 uv2 = 0.5 + product*aspect.zw*3.3 + float2(q25,q26); // the fractals left arm
  408. warp_11=`factorB = float2(q27,q28);
  409. warp_12=`product = float2( factorA.x*factorB.x - factorA.y*factorB.y, factorA.x*factorB.y + factorA.y*factorB.x);
  410. warp_13=`float2 uv3 = 0.5 + product*aspect.zw*3.3 + float2(q29,q30); // the right arm
  411. warp_14=`ret.x = max(GetPixel(saturate(uv1)).x, max(GetPixel(saturate(uv2)).x, GetPixel(saturate(uv3)).x)) - 0.015; // composition of the fractal
  412. warp_15=`ret.y = tex2D( sampler_fc_main, uv ).y;
  413. warp_16=`}
  414. comp_1=`float2 d, uv_light1;
  415. comp_2=`float3 dx, dy, c1, c2, c3, c4, light1_dy;
  416. comp_3=`shader_body
  417. comp_4=`{
  418. comp_5=`float2 uv_swimmer = frac(0.5 + (uv-0.5)+float2(q31,q32)*float2(-1,1));
  419. comp_6=`d = texsize.zw*4;
  420. comp_7=`dx = ( GetBlur1(uv_swimmer + float2(1,0)*d) - GetBlur1(uv_swimmer-float2(1,0)*d) );
  421. comp_8=`dy = ( GetBlur1(uv_swimmer + float2(0,1)*d) - GetBlur1(uv_swimmer-float2(0,1)*d) );
  422. comp_9=`
  423. comp_10=`// ***** Martin's ripples on water surface code, parameterized by Flexi *****
  424. comp_11=`
  425. comp_12=`float h = 1.1;
  426. comp_13=`float cut_off = 0.0;
  427. comp_14=`float2 t = float2(0.1,-0.05)*time*0.25;
  428. comp_15=`float strength = 0.025;
  429. comp_16=`
  430. comp_17=`
  431. comp_18=`float2 c = uv_orig-float2(0.5,1-h);
  432. comp_19=`float z = 3/c.y;
  433. comp_20=`float2 uv_water = float2(c.x*z*h,z*h)*0.05+t;
  434. comp_21=`int mask = (c.y>0);
  435. comp_22=`uv_water = (tex2D(sampler_noise_hq,uv_water)-0.5)*mask;
  436. comp_23=`uv =saturate(uv-uv_water.xy*strength);
  437. comp_24=`
  438. comp_25=`// ***** :)
  439. comp_26=`
  440. comp_27=`float2 uv_x = uv -float2(dx.x,dy.x)*0.2;
  441. comp_28=`
  442. comp_29=`dx = ( GetBlur1(uv_x + float2(1,0)*d) - GetBlur1(uv_x-float2(1,0)*d) );
  443. comp_30=`dy = ( GetBlur1(uv_x + float2(0,1)*d) - GetBlur1(uv_x-float2(0,1)*d) );
  444. comp_31=`uv_light1 = float2(q4,1-q8);
  445. comp_32=`light1_dy = 1.04- pow(length( uv_x - float2(dx.y,dy.y)*2 - uv_light1)*0.5,0.25);
  446. comp_33=`
  447. comp_34=`c1 = float3(0.5,0,0.2);
  448. comp_35=`c2 = float3(0,0,0.2);
  449. comp_36=`c3 = float3(0.1,0.1,0.5);
  450. comp_37=`c4 = float3(1,0.5,0);
  451. comp_38=`ret = lerp(lerp( c1, c2, uv_x.x+uv_x.y*0.5-0.1),lerp( c3, c4, 0.7-uv_x.y+uv_x.x*0.5),1-GetPixel(uv_x-float2(dx.y,dy.y)*texsize.zw*12).y);
  452. comp_39=`ret = lerp(ret,2,GetPixel(uv_swimmer).x*0.4);
  453. comp_40=`
  454. comp_41=`ret *= light1_dy*2 + 0.4;
  455. comp_42=`ret = lerp(ret,1, abs(GetBlur3(uv).y-GetBlur1(uv).y)*0.5 + GetBlur1(uv+float2(dx.y,dy.y)*0.16).z*2);
  456. comp_43=`ret = lerp(ret,1,GetPixel(uv).z);
  457. comp_44=`
  458. comp_45=`
  459. comp_46=`}